package com.ychong.ychongwidget.ui

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.ychong.library.dialog.ToastDialog
import com.ychong.ychongwidget.R
import com.ychong.ychongwidget.databinding.ActivityToastDialogBinding

class ToastDialogActivity : AppCompatActivity(){
    private lateinit var binding: ActivityToastDialogBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this, R.layout.activity_toast_dialog)
        setContentView(binding.root)
        binding.toastBtn.setOnClickListener{
            val dialog = ToastDialog(this)
                .setMsg("吐司出来啦")
                .build()
        }
    }
}